package com.justrun.zjutsystem.zjutsystem.entity;

import java.util.Date;
import java.io.Serializable;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.metadata.BaseRowModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;
import javax.validation.constraints.Size;

/**
 * <p>
 * 教师用户信息表
 * </p>
 *
 * @author chandler
 * @since 2020-09-27
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Teacher对象", description="教师用户信息表")
public class Teacher  implements Serializable{

    private static final long serialVersionUID = 1L;

    @ExcelProperty(value = "教师编号",index = 0)
    @ApiModelProperty(value = "教师编号")
    @NotNull
    @Size(min = 6,message = "教师编号最少为6位")
    private String teacherId;

    @ExcelProperty(value = "教师名称",index = 1)
    @ApiModelProperty(value = "教师名称")
    @NotNull
    private String teacherName;

    @ExcelProperty(value = "性别",index = 2)
    @ApiModelProperty(value = "性别")
    private String gender;

    @ExcelProperty(value = "生日",index = 3)
    @ApiModelProperty(value = "出生年月日")
    @DateTimeFormat("yyyy-MM-dd") //指定输出到Excel的日期格式
    private Date birthday;

    @ExcelProperty(value = "学位水平",index = 4)
    @ApiModelProperty(value = "学位水平")
    private String degree;

    @ExcelProperty(value = "职称",index = 5)
    @ApiModelProperty(value = "职称")
    private String jobTitle;

    @ExcelProperty(value = "手机号",index = 6)
    @ApiModelProperty(value = "手机号码")
    private String phoneNumber;

    @ExcelProperty(value = "邮箱",index = 7)
    @ApiModelProperty(value = "邮箱")
    private String email;

    @ExcelProperty(value = "学院编号",index = 8)
    @ApiModelProperty(value = "学院编号")
    private String collegeId;

    @ExcelIgnore
    private Date gmtCreate;

    @ExcelIgnore
    private Date gmtModified;


}
